package main

import (
	"log"
	"store/app/boot"
	"store/global"
	"store/router"
)

func main() {
	boot.AppInit()
	r := boot.AppRun()
	router.AppRouter(r)

	port := global.Config.Http.ApiPort
	log.Println(global.Config.App.Name + "运行在端口:" + port)
	if err := r.Run(port); err != nil {
		log.Fatalln(err)
	}
}
